bfd86ec494b2b5f4fb9a8d26d37eabd79007987e,components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpConsumer.java,FtpConsumer,pollFile,#FTPFile#,127

Before Change



    private void pollFile(FTPFile ftpFile) throws Exception {
        // TODO do we need to adjust the TZ? can we?
        if (ftpFile.getTimestamp().getTimeInMillis() > lastPollTime) {
            if (isMatched(ftpFile)) {
                String fullFileName = getFullFileName(ftpFile);
                final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
                client.retrieveFile(ftpFile.getName(), byteArrayOutputStream);

After Change



        long ts = ftpFile.getTimestamp().getTimeInMillis();
        // TODO do we need to adjust the TZ? can we?
        if (ts > lastPollTime && isMatched(ftpFile)) {
            String remoteServer =  endpoint.getConfiguration().remoteServerInformation();
            String fullFileName = getFullFileName(ftpFile);